Gel useful for the delivery of ophthalmic drugs