New Util function slice1_n. Few changes to piaf