Release mechanisms in gelforming sustained release preparations