Change the resolution of the images

Hello, I have the problem that I have an image slider user and this makes the RAM consumption very high. Is there a way that the images are automatically scaled down to still look sharp on the device in question? I don't want to scale down every single image myself and am looking at a way a code would automatically make that fit for me.

Thanks a lot!

Change the resolution of the images
 
 
Q