A thin portable electronic device with a display is described. The components of the electronic device can be arranged in stacked layers within an external housing where each of the stacked layers is located at a different height relative to the thickness of the device. One of the stacked layers can be internal metal frame. The internal metal frame can be configured to act as a heat spreader for heat generating components located in layers adjacent to the internal frame. Further, the internal metal frame can be configured to add to the overall structural stiffness of the device. In addition, the internal metal frame can be configured to provide attachment points for device components, such as the display, so that the device components can be coupled to the external housing via the internal metal frame.