added smooth dragging behavior for expandable menu