optimized dca/tl_gallery_creator_albums.php

optimized dca/tl_gallery_creator_albums.php for use in contao 3.1