Drag/slide functionality on bubble

please i need help on how to achieve this sliding or dragging functionality on bubble


https://drive.google.com/file/d/1V4ns-iXhSOPE9oCAS_CoEbCdi4w0xZG-/view?usp=sharing