See the section on “Hackboxing and insertion”, portrait needs to fit within the inner defined area of the box.