Optimizations to thumbnails loading