fixed my confusion over horizontal and vertical and also added some slick css styles