Integrate new slicing and js