Hide previous and next buttons if no page is available