update styles for cubes in multiple lines