It's so easy to have your snake get stuck this way & she'll probably be fine, as long as you didn't pull on her (in such a way to cause internal injuries, you have to be
really careful). Snakes find holes that you never knew were there...now you know.If you're calm when you next take her out, that will likely count for a lot more than any minimal memory of this, but speaking of "memory"...snakes DO learn (remember) their way around, so she may remember where to go again, make sure she never does.