another attempt at partition layout compactization