update span dimensions