allow width and height to be adjusted by margins