Moving nodes will automatically shift input ports to be on top or on left side; output ports will be either on bottom or on right side.