update span offset