There are two ways.  You can either put a rugged carpet under your dog's ramp or go for a professional anti-slip coating on your floor. Such as epoxy paints.