Its a pain! Most times I have to take the rock out that they're stuck to, and slowly pry back along the edges. It works better if you can turn the rock so their foot is exposed to your bright lights (still in the tank) and if they start to move you can get them up pretty easily, but they don't usually cooperate that well.
jds