occasionally they drilled with their small-arms in the courtyard behind the residence , but it was not very pleasant in the heat , and they were glad to return to the cool walks and gardens of the palace after .