I do take them out for a few seconds, I use reef glue gel so it dries really fast. You can keep the corals out of water for a few minutes at most. The coral will of course close up once you start handling it. Just be gentle and dont touch the fleshy parts of the coral.
here are some pictures, tried to include theones I've glued to rocks, I have so many corals lol