Fix slider undefined function