layer slider is not a function