margin tuning for canvas