attempt to deal with RAM and CPU overload in generate_queryset_slices