allow specification of number of lines & width for the preview