Improve actualSplit to not return excess elements