Since everything is now build from scratch, I took the opportunity to switch to an actively maintained gallery system as "Gallery 3" is no longer under active development.
The replacement for "Gallery 3" in my case is "Piwigo"