On and off with a sliding motion