You could try the stretch with your foot hanging off the edge of a curb. I was doing this two days ago, as I locked myself out of my car after a workout and had nothing else to do. The slipping off the wall issue is not there with this version.
I did it both standing and leaning against my car. Both worked very well.