Generalise thumbnail margin stlying