Adding css styles to thumbnails