Add pagination to Index page and user posts