My laptop is slow and sometimes it freezes?

Hi! Um using a Lenovo G505 windows 8.1, well i have tried scanning it and tried avg tuneup trial to fix the problems and increase its speed but its still the same.sometimes when i leave the desktop displaying, the display will disappear for some seconds, like its refreshing and sometimes it does that 7-8 times a day.

It is perfectly normal for the computer to sleep. While in this state Windows runs "maintenance". You will notice a little clock on the flag next to the clock indicating it's in the mode. To change the sleep setting Control Panel Power Options Balanced change plan settings change advanced power settings
Select your options on the left