When they are young it is a bit more tricky to sex them. Generally the most dominant fish in a group is the male. Look for pointy, slightly more elongated fins. As they grow you should see that the males have blue dots on the face, whilst the females have larger blue blotches, which is also sometimes referred to as a "blue beard'.