Change vec to slice