changed path arg of compute.slices to file.