refresh the date slider on resize