Stability of vertically movable gates