Added thumbnail class, restructuring layout.