better fix for Array.slice on ie8