allow stack slicing indexed by material