Í don't quite understand just what is your issue - in a slider object, you need to specify a variable to adjust with it - so you need to make your time_frame_selection into a variable and show the value of the variable (with $-sign-expansion) in your textbox.