option to hide top and bottom