expand and retract directions panel