add margins on thumbnails