The courts are very reluctant to send mothers to prison.
The drugs were class C
You were pressurised into offending
You have taken steps to take control of your life.
These are all mitigating factors which the court will take into account.
Also capable of being mitigating factors are relative youth; a clean record and a plea of guilty at the earliest opportunity.
A sentence of imprisonment is not inevitable, but for your own peace of mind make sure that you have care in place for your children and that you warn them before court that you may have to go away for a trip to see a sick relative for a while, but they are not to worry.
If you can be sure that your children are well cared for that will ease your anxieties somewhat.