refactoring and load more thumbnails on browser resize

closes #273