Keeping the two substrate separate is a daunting task. Your best bet is to cover the seam with a wide shelf of moss/riccia/etc. I found having a dual substrate to be too much trouble. I went from sand/AS to only AS to only sand.
See the ADA jounal link in my sig for further details.