The dorsal fin (top fin) is much larger in males
Also the anal (fin near the bum) in males is pointed, they can also move this and is what is used when mating.
Your see when they are pregnant, the female gets quite fat and rounded on the body, and when she goes relatively thin then she's given birth.