backwards and forward sliding transition