Added flexing and centering of short template container