Freezer is not freezing properly

My freezer is not freezing properly it is cold but not freezing like it should can you tell me what might be wrong with it also the door of the refrigerator is not closing all the way do you think it needs a new gasket?You can see that the light is on in the refrigerator when you shut the door at the top of the door part