Before the fight in an army and during the new unit positioning phase you can click on the rectangle to join a unit group as a captain but it seems that you cannot remove yourself from the position anymore. Clicking on the square now filled with your picture does not do anything.