Want to sell images online on wordpress but slow image loading issues

I wish to sell images, videos and music online but if I add the media files in WordPress, the website becomes slow. IS it possible to add a library? where I can upload thousands of images and videos without slowing down my WordPress site and linking it to the website?