Hide pager when it is not needed.