Gelfand-Shilov type spaces through Hermite expansions