I read a thread in the past where some people used a clean wet towel to hold their squirming fish. I've never done this so i don't know how well it works. But you should be able to visually sex a JD without removing it from the tank. Females will have a lot of blue on their gill plates, also known as a beard. Males will only have a few blue pearls in comparison.