fixed cyclical slide direction logic