refactoring and load more thumbnails on browser resize