Added pagination to pins and bootstrap pagination for rendering