fix slide left and right transitions