only show max dimensions if at least width or height is set