fixes jumpy browser behavior by initiating close of previously expanded after setting height on new expanded