Added more robust error handling in time_slider