If it's a bigger mattress you can maybe lie down next to her to get her to sleep. Might even work for day sleeps, who knows?
DS was all over the place when he was on the mattress, but moves much less now - I think they learn to (or else fall out). Mind you, he's still upside down or sideways hanging over the edge sometimes.