adjusting canvas size