My presentation is consisted of 4 consecutive slides. I want to divide them in 2 sections. My code:

    \documentclass{beamer}
            \mode&lt;presentation&gt;
                    {\usetheme{Frankfurt}
                     \usecolortheme{lily}
                     \usefonttheme{professionalfonts}}
    \usepackage[english]{babel}
    \beamertemplatenavigationsymbolsempty
    \setbeamerfont{page number in head/foot}{size=\tiny}
    \setbeamertemplate{footline}[frame number]

    \begin{document}

    \section{Numerical examples}
    \begin{frame}
    Example 1
    \end{frame}

    \section{Results}
    \begin{frame}
    Results 1
    \end{frame}

    \section{Numerical examples}
    \begin{frame}
    Example 2
    \end{frame}

    \section{Results}
    \begin{frame}
    Results 2
    \end{frame}

    \end{document}


I have something like this:



Because they have the same names, I would like to achieve the following results:



How can I add slide to the previous section?


Question: How to retrieve files inside folder in document library using javascript
Answer: I have found the solution

var hostweburl;
var appweburl;
var allItems;
// Load the required SharePoint libraries.
$(document).ready(function () {
    //Get the URI decoded URLs.
    hostweburl = decodeURIComponent(
getQueryStringParameter("SPHostUrl"));
    appweburl = decodeURIComponent(
getQueryStringParameter("SPAppWebUrl"));

GetFolders();


});

function getQueryStringParameter(paramToRetrieve) {
    var params = document.URL.split("?")[1].split("&amp;");
    for (var i = 0; i &lt; params.length; i = i + 1) {
        var singleParam = params[i].split("=");
        if (singleParam[0] == paramToRetrieve) return singleParam[1];
    }
}

function GetFolders() {
    var clientContext = new SP.ClientContext(appweburl);
    var appCtxSite = new SP.AppContextSite(clientContext, hostweburl);
    var web = appCtxSite.get_web();
    var list = web.get_lists().getByTitle('TPSDocument');

var query = SP.CamlQuery.createAllItemsQuery();
// query.set_folderServerRelativeUrl('/TPSDocuments/TestFolders');
allItems = list.getItems(query);
clientContext.load(allItems, 'Include(Title, ContentType, File)');
clientContext.executeQueryAsync(success, failed);


}

function success() {
    alert("success");
    var fileUrls = "";
    var Filename = new Array();
    var i = 0;
    var ListEnumerator = allItems.getEnumerator();

while (ListEnumerator.moveNext()) {
    var currentItem = ListEnumerator.get_current();
    var _contentType = currentItem.get_contentType();

    if (_contentType.get_name() != "Folder") {


        var File = currentItem.get_file();

        if (File != null) {


            fileUrls += File.get_serverRelativeUrl() + '\n';

            var url = fileUrls.split('/');
            var folder = url[url.length - 2];

            if (folder == "TestFolder") {

                Filename[i] = File.get_name();
                i++;



            }

        }

    }

}
alert(Filename);
alert(fileUrls);


}

function failed(sender, args) {
    alert("failed. Message:" + args.get_message());
}