paging for galeries improved