Autodetect Vertical Grid

The vertical grid now automatically trys to detect how many columns are
in a layout and updates accordingly.