Copy an array without the first n and last n indexes