Update slidebox/slidebox.js

added getter for 'getSelectedIndex'