set width and height properties