Isolate the rock/nem on the sand bed and the nem will not be able to walk/crawl around because it cannot move on the sand. This has worked for me and My RBTA's stay in the center of my tank and have never moved.
Never heard that before... Can they really not walk on sand? That is very interesting I might try it haha