fix slicing bug & add algo params checking support