fixed constness problem in SliceGraph