simplify slide direction