As I understand you want to display your slide in specific pages, so you need to control it using if condition.
debug the code before use,
-
Only on front page / home page
is_front_page(); // Use this function
More reading . https://developer.wordpress.org/reference/functions/is_home/
https://developer.wordpress.org/reference/functions/is_front_page/ -
Get Current page name
$pagename = get_query_var(‘pagename’);
More details , stack overflow answer .https://stackoverflow.com/questions/4837006/how-to-get-the-current-page-name-in-wordpress
-
Using Advance custom fields , ACF is a free plugin but I think repeater field is paid. anyway it have nice control customfilds.
Follow this resources
https://www.advancedcustomfields.com/
https://www.advancedcustomfields.com/resources/repeater/