adjust progress bar when using h min and max