adds pagination for comments