optimizations to thumbnails loading