improved frame_slider behaviour in ui.py