Refactoring slicer and mrb querying