Update maxHeight for page preview