PSX gains 8.15 points, closes at 51,185.28 points