added smooth dragging behavior for the expandable menu