Tiled Gallery: No need to pass type to item.

A gallery item is now an abstract class, and implementations for different layouts use template pattern to set attributes specific to them.