added photo pages + fixes in pagination