Display all posts in main category and 1 subcategory

to get the children of the queried object, you can use this code is the file taxonomy-galleries.php

$o = get_queried_object();
$children = get_term_children($o->term_id, $o->taxonomy);

$children is an array of term identifiers then you just need to loop over this.