If by collapsed you mean shrivelled up then perhaps it just took a poop

and it should expand again in a little bit. If its mouth is gapping open or it is no longer attached to your rock work/glass or whatever, and is just being tossed about. Then you have some serious problems and need to take some action.