Tiled Gallery: Make item dimensions auto.

Width and height of Tiled Gallery items set to auto, so that items are placed
nicely into the newly added row containers and don't overflow to next rows.
Width set to inherit when inside gallery groups so that rectangular galleries
still work in IE8.