Added pagination for pins