Fixing thumbnail layout