added pagination gems and limited pins per page