hide the dotted line when a panel is there