Why I get the vertical layout if I chose the horizontal one?

The main layout depends also on the min_horiz_w parameter (minimum horizontal width option – if you are using the wordpress plugin).
By default it is set to 400px

This means that if the box wrapper is tighter than 400px the vertical layout is used.

To always use the horizontal layout, set it to zero