resized the thumbnail