Grid template and support of custom sheet sizes