Revert "Fixed pagination for 6 pages. It showed 7 instead."

This reverts commit 16c72123ec14b819a94c115c32a398130fe9da19.
Pagination fix