I bought industrial strength hook and loop tape, and stuck the rough side to the bottom of my sewing foot. It has not moved since. It grabs the carpet and no damage. For smooth floor, I would clean the bottom of an unplugged sewing foot with Alcohol, then put dots of bathtub caulk on it, let them cure and that should stop it from sliding.