slicing dataset before persisting to graph db