Added array_slice to array functions