fix next and previous buttons to display on top