Updating pagination to include only 5 posts.