Sections twenty to twenty-five, both inclusive, of this article, shall not apply to animals brought into the state for immediate slaughter, or for temporary exhibition purposes only, if a permit, conditioned as the commissioner may prescribe, for each animal intended for exhibition, shall first have been obtained from him