moving width and height to attributes from style