slice an array to small ones