updated pins controller to show 8 images per page