restrict dialog height