i did this using visual basic for aplications in powerpoint, there is a lot of videos explaning how to use it :D Also, i did not make the code alone, i also get some of the code from this channel: https://www.youtube.com/channel/UCtFt_nQcu9a8KGWHHiwhHUg
There is even a community of powerpoint developers!: https://www.youtube.com/c/ComuPPT
Sadly, all these 2 channels are in spanish but i hope you can still understand how the code behind this work.
Thanks!
(Also i am sorry 4 the gramatical errors i speak spanish :( )