client: make the layout work right when vertical
client: fix the elements when in a vertical layout