pagination and add photos