added pagination to pins on index