improve UX on resize