modified random walk so that direction only changes every sl frames.