put the thumbnail in a div