Tiled Gallery: Fix square/circle display bug.

Square and circle galleries were not displayed properly. Fixed layout
computation.
Merge pull request #1163 from Automattic/fix/tiled-gallery-display-bug

Tiled Gallery: Fix square/circle display bug.