Even though the slider may be moving freely, doesn't mean it is actually shutting the machine off by opening the contacts within the switch.
If you manually move it to off while running, does the dryer turn off? At this point I'd say you need to start searching for a replacement 302528 switch.