Set max size on popups