This may be more work than you want, but ...
Cut a piece of rigid , flat plastic, the same size as the filter. Using double sided, waterproof foam pads, attach that to the glass of the tank. (The glass would probably need to be dry, and that might rule this out for you.)
Use the suckers on the...