append LengthEncodedInteger directly to slice