added margin to thumbnail class