Its a limitation u can only donate 5 units, but if the person has 9 space, others can put a horse in it that takes 6 populations and then u can still add 4 more units, aslong as it fits, so example u can put in 3 melee units in it.
as far as i seen (my alliance gate is lvl 5) its alwayes 5 max...