Boxes, trays and partitions