apply width + height properties