how does a sliding fence gate work