Add pagination for comments in the backend.