Setting style for thumbnails.