support for both orderings of the slices (top->down / bottom->up)