fixed length index in customsplice..m