added directive for changing template size