I would not go by the dorsal fin method, it is pretty unreliable, at least with rams. It is true that males tend to have longer, more pointed fins, as well as a distinct spike of the second and third dorsal rays --- but many females have this as well. I have a female gold ram (I have determined her sex by the vent, with the help of many members here), for example, whose fins are more pointed than either of the rams in your photos, and has a much higher dorsal spike on her 2nd and 3rd rays than either of the rams in your photos.
Yours do appear kind of young, maybe too young to sex yet. If you can get a photo showing the vent, that is really the best way -- but again, may be too young yet to tell right now.