utils: fix the SliceIntersect