Modify photo pagination