fix Array definition to literal

New Array is not safe . Array definition is safer to user [] ( literal type) than  new Array() 
because, you can override the value of Array in JavaScript 
ex:) 
Array = function(){ 
    alert("test" ); 
};
slidePos = new Array( 3 ); 
slide Pos is alert("test");