Apply padding to top and bottom