Trapping a magnetic rainbow by using a one-way magnetostatic-like mode