fix slide direction