Unfortunately, this gate did not work for my Maltese.  He was able to detach it from the wall.  I had to resort to his cage  which he hates.  Now I just leave him out and suffer the consequences.  It just was not sturdy enough to withstand his determination to get on the other side of the gate.