change pagination for photoSearch