Added class 'vertical', and made some changes to improve grid behaviour and shorten it's code.