using style instead of attr on height/width setting