added horizontal 3xn top to bottom and left to right layout