Photos are rendered in public gallery area with respect to sql limit and offset. Render a functioning pagnation still remains.