slider direction fix