adds different styling classes to thumbnails