changing the preview box height, if there isn't enough place for that (otherwise set the default)