Hello!
I am going to try to make a stab at guessing their genders. It's really difficult when they're smaller/juvenile. I want to guess that the one at the bottom is most likely male. Dovii's tend to have a solid-ish black lateral line that runs through them. They may also have a spotted pattern above and below this line (you may want to check yourself, it's difficult to see in the pic). When they get older, males also get more coloration on the head and between the eyes.
For the one on the top, I want to say it is a female. The lateral line Is more punctuated across the body. Also check for spotted patterning. If it doesn't have it, it may be a female.
Be aware, however, that the lines and patterning may change and I could be wrong. But judging on your photos now, that is what they seem to be.
Hope that helped!