adds thumbnail class