You can move a gate back and forth inside a fence by simply clicking and dragging it.
To move a gate:
Click on the gate to select it.
Hover your pointer over the center
grab handle to display the Move cursor.
Click and drag to move the gate, then release your mouse button.