Solution to max double slices