Fix queryset slicing