Magnetic and structural transitions in TmGa3