The best options for lining a dish are tin foil or baking paper. Both should be greased with butter or non-stick oil spray, and should come out further than the fudge so that you can lift it out of the dish easily.