Adding slicing to mim for better pymongo compat.