You can close any shortfall in retirement provision after maternity leave with private funds. You can find the amount that you can use to buy into the pension fund in your pension certificate under "Maximum possible payments on 1.1.xx" in the section "Purchase / Refund".