Try to keep at least like 500 mb of ram free at all times, it can greatly slow down your computer. Is it loud when it's freezing? That's a clear sign of a computer overheating, how much RAM do you have? What's your processor?