fixing class of the thumbnail