adding array and slice