quick fix to make slider work