How to allow subpages under restricted parent page to show?

I have themes.php restricted from non-Super Network Admin access but it restricts all the subpages under it. How could I allow an access on some pre-defined subpages under restricted parent page? For example, I want to allow access to this one >> "/themes.php?page=optionsframework" but I want "/themes.php" to get restricted.

function restrict_admin_with_redirect() {

    $r_php_self = $_SERVER['PHP_SELF'];
    $r_full_query = $r_php_self."?".$_SERVER['QUERY_STRING'];

    $restrictions = array(
    foreach ( $restrictions as $restriction ) {

        if (stristr($r_full_query,$restriction)) {
            if ( ! current_user_can( 'manage_network' ) ) {
                wp_redirect( admin_url() );
add_action( 'admin_init', 'restrict_admin_with_redirect' );

Please advice.