added pagination for pins