Magnetic bags in hyperbolic space