Sort:  

The image viewer only works on image already loaded in the underlying page. So you should load more posts on the page before being able to view them in the viewer.

Maybe I can improve it, but not sure it will be easy;)