updating span for thumbnails template