This is possible with what is called a tandem gate. A tandem gate is a two piece gate system that will slide into an area roughly 2/3 the width of the opening. In some cases it will require a larger operator because of the mechanics involved.