Use correct way to reach $config

A fix in portal_modes/product_gallery/controller.php

$config is addressed wrongly