closing gates at the side