Here is an example of slicing an array to generate a new one:
var array= [
[1,"dataA","dataB","dataC","dataD"...],
[2,"dataA","dataB","dataC","dataD"...],
[3,"dataA","dataB","dataC","dataD"...],
[4,"dataA","dataB","dataC","dataD"...]...
];
If we slice each array using slice(0,3), the resulting new array would look like this:
var resultSecondArray=[
[1,"dataA","dataB"],
[2,"dataA","dataB"],
[3,"dataA","dataB"],
[4,"dataA","dataB"]...
];