added pagination to collection view