I suspect it would work, although you might want it oriented the other way, so that the large magnet is on the bottom.

I'd be a little concerned about whether it might adversely impact cooling. The unit has vents on the top and bottom, which should create a thermosiphon that helps circulate air over the heat sink. If you put the unit sideways, that won't work any more.