add maxMargin option to specify margins when fullscreen is active