Resize small graph and add margin