If I am machine quilting, i sandwich the quilt top/batting/backing using spray basting and anchor it down each side. I quilt in both directions so that there is no shifting. I found sewing in the same direction can cause it to shift in the direction you are sewing.
Hope this helps... :)