switched layout algorithm to equal spacing with cousins further than siblings