The present disclosure provides a device for self-preparation of a gastroretentive dosage form being capable of transitioning between a collapsed configuration and an expanded configuration, the device comprising an assembly unit including: a compartment configured for accommodating the gastroretentive dosage form in the expanded configuration and a mechanical system configured for, upon operation of an actuation mechanism: (a) transitioning said gastroretentive dosage form into the collapsed configuration and (b) locking said collapsed gastroretentive dosage form into the collapsed configuration wherein the device is configured for being portable.