Shifting the array to next position