a few things to try...
try opening the case and make sure it is dust free. also check all connections. When you click on photos, what is the default utility? Check with hp and make sure you have all of their updates for that specific computer model, also you can run their diagnostic utility to see if there are any issues. Finally, run your computer in safemode to see if it is still slow
https://support.hp.com/us-en/topic/d...gory=computing
https://support.microsoft.com/en-us/...4-b3e5e56fe234