solved stacked thumbnails on initial load