add decode func in slicer