Generally, shoes slip because they have been worn for a long time. The sole is polished to reduce friction and the anti-slip effect is poor.
If you want to prevent slipping, you need to increase the friction. We can go to the shoemaker and ask him to put a tendon on the sole. This method is still very good and the effect is the most obvious.
You can also put some adhesive tapes on the soles. You can also try this method.