The district court may grant reasonable visitation rights to grandparents or great-grandparents upon a proper showing that the visitation would be in the best interests of the child.