slope-keypoint compaction