code optimizing in ModuleDisplayGAllery.php #56