How to Fix if Samsung Galaxy S4 Camera and Gallery app Not Working

I’ve been having issues with both stock Gallery and Camera apps on my beloved S4. I can’t stay in the gallery app for more than 30 seconds without it freezing. Then I have to hit the home button and kill the app in the task manager. My camera app sometimes will not take a picture when I hit the camera icon to take the pic. To fix this problem very time I have to restart my phone. This doesn’t happen as often, but I’d hate to have it happen when I’d really like to snap a great pic but can’t because the app is acting stupid and not letting me take the picture. 
 
Please help if anyone else experiencing this same problem or know of any fixes?