Study of the confined Ising magnet with long-range competing boundary fields