set maximum progress bar size