resize file name in the progress bar when too long