Nails on the front paw are smaller than those on the rear paw and require more concentration to trim. Fortunately nails on the front paws don't generally require trimming as often as those on the rear paws and you can just trim the tip off.
There is no better way to do the sometimes fiddly job of clipping nails on front paws, so gently handling the paws in a way that allows you to trim the nails is preferable.
When handling front paws be careful not to pull the arm away awkwardly from the guinea pig which can cause discomfort and even injury. You can identify how far you can afford to move the arm because the guinea pig will pull his arm away if he is uncomfortable and his body will automatically give resistance to any unnatural movement.