change position of arrow depending on open or closed content