update size of progressbar