update svg width according to total used width