Selects a subset of items from array and returns it as a new array with a maximum number of elements.