You certainly have an hardware issue which is out of the scope of this support forum, I just did a test with a G25 and it works as expected, see the screenshots
button 7 and 8 are perfectly recognized by Windows
and obviously by SLIMax Manager Pro
a dialog is displayed when you double-click the function to tell you to press the control, you press the button and that's it.
check your hardware, usb connector, etc.
do not use the logitech app but the Windows Game device properties of G25, click the button 7/8 to check them

SLIMax Manager Pro recognize the G25 as an game device

and double-click the function and press the G25 button to map it

