update width of progress bar