added pagination to pins