Add pagination to photos