Added a maximum of five numbers in the top navigation of the pagination.