fix viewer paging algorithm

* fix number of image-box divs: (size of images) -> 3.
** To avoid crash caused by many translate3d divs.