Add slider to gui.py