Fix LT-15872: give duplicates unique css class names

Change-Id: I343258ce162292fe8cd1bb8370970ecfe6f855a9