Add max width and height to gleam.