Add resize handler for maintaining selected listing on resize.