update progress position after changing top margin