fix pagination and centering photos