Per filmens kommentarspåret med George Lucas, har Dianoga lyckats hitta ett litet utrymme där det kan gömma sig medan mashing pågår.
And you begin to say, "how am I gonna get Luke free from this monster?" And you have lots of choices, and obviously the easy one is having Han shoot it, having it let go and go away but that's not too much fun. So when you get in there, you know where things are going... when the walls start to close the Dianoga runs away and hides, in a little space that protects him from the walls. So things start to tell their own story after a while. You got the thing, the thing he lives in there, the thing closes all the time he must have figured out a way not to get squashed but it would mean that he would let go of Luke and release him, and then the next problem would be introduced, the doors closing.