use slice for cloning an array instead of concat