This is a snippit of code I use in other projects to slide material over after being cut. See "auto rail maker"