The compartment that has the magnet is behind the front edge on the keyboard side.
Gently pry from each side the panel, which is secured by heat glue. Be careful not to damage it. use a hooked tool, there is space on either side to hook around the end of the panel.
You may need to use another magnet to get the magnets out.
There are two magnets in my example that are stuck together.
Magnets are separated. You will have to experiment a bit by playing with the right combinations of putting the two back together. It is trial and error. Place the magnet on the switch area of the iPad. It will shut off when you found the right combination. Then make sure it is face up
when you put back in the ZAGG. Then reassemble.