Removed global reference to slider