My Corn Snake does that too. Slow crawling forward when content and then quick, rapid, tight movements when nervous. One of my Corns even rattled its tail when she was protecting her eggs from me!