Corrected next/prev page calculation.
Improved behaviour of items being brought into view on multi-item-per-page galleries.