It's kind of hard to tell from that picture, but it might be expelling it's guts. (Mesenterial Filaments) Why this is happening I don't know, but it's usually a defense mechanism. If the mushroom doesn't bounce back to normal within a few hours or so you might have to start looking for answers. For now though I wouldn't worry about it.