Fixes gallery display issue.

Fixes DoSomething/dosomething#2764.