Displaying only specific galleries using shortcode on a custom page

Take a look at gallery shortcode documentation (Codex)

id

specify the post ID. The gallery will display images which are attached to that post. The default behavior, if no ID is specified, is to display images attached to the current post. For example, to display images attached to post 123:

So yes, you should put post_id in there, not post_name.