Targets look better at short ranges. As the bullseye becomes more distant, holes in the cardboard spread out, and the shooter's deficiencies become more apparent. One thing I have never done shooting at 25 yards is blame the gun for my failings. Hell, I know shooting a pistol across a quarter of a football field and making cloverleaf groups is difficult. I'm proud to say that most of my guns can do it, but I can't. Oh, I occasionally get lucky, but I can not consistently group tight at 25 yards. With practice and sharp eyes, I might get there, but it isn't my goal any more. Fast hits from concealment at bad breath distance are.
Todd G has penned a piece concerning shooters blaming the gun. If you find that your handgun shoots 6-12 inches low at 21 feet, 10 inches low at 25 feet, or two feet low at at 25 yards, especially with factory fixed sights, take a hard look in the mirror. It ain't the gun.
Todd also provided some links to drills to help.
The Wall Drill
The Ball & Dummy Drill
The 3X5 Card Drill
Dry fire practice with a penny balanced on the front sight will help as well.