It's necessary for them to be the same gender as they are a reflection of the human self. While there are certain ways to interpret this that would allow for your idea, I honestly feel it is very difficult to write that properly with respect for the real-life condition. However, you could have the Alter Ego easily mistaken for being female if you so desired.