Use .slice to clone array