I use clear little rubber slip proof things that can be bought at the hardware stores. I bought mine in the notions section of a variety type store we have in town, also in their hardware section.
I put them all over the bottom of my ruler so they don't slip.
Works great.
There's also little green fuzzy round things that help also.
They are used to put on the bottom of lamps, etc. to prevent slipping.