removed unused variables in slice script