Changing template element positions