Changing the layout to a vertical one