fix IE8 array.slice call