Add frames for document ranges