You can usually get a clam or anemone to release their foot by taking a butter knife and gently pressing it against the flesh. They will normally retract their foot when they feel the metal, and then you can safely lift the animal off the rock and move it while minimize the risk of you tearing its flesh.