checking arrow right and arrow left on non horizontal containers