limit the size of thumbnails