Trying to fix gallery layout issues.