Anyone know how to rig an ex-pen so that a yorkie that wants out,

, can not pull it all out of shape and end up with a small bit left to be in?
I have to leave Milo behind in his ex-pen today and would like to be able to not be visualizing him all folded up in the pen while I'm out.
Thanks so much in advance!