hide the previous and next button when there is only one page.