Dynamic Gallery

You can use Advanced Custom Fields plugin – paid, to to that:

http://www.advancedcustomfields.com/add-ons/gallery-field/

Plase what a video.

Also on lightbox you need this Jquery plugin:

http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

Create a custom post type with name gallery.

Then create a page-gallery.php and put this code:
:

<?php
     $args=array(
           'post_type' => 'gallery',
           'post_status' => 'publish',

           'posts_per_page' => 12,
           'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 )
                  );
      query_posts( $args ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post();?>

<div class="gallery_item">
<a href="https://wordpress.stackexchange.com/questions/129212/<?php the_permalink(); ?>"><?php the_post_thumbnail(array(145,96)); ?></a>
<a href="https://wordpress.stackexchange.com/questions/129212/<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<?php endwhile; endif; ?>

Then create single-gallery.php and put code like this, some modification meybee needed.

<?php
                $images = get_field('bildes');
                if( $images ): ?>

                            <?php foreach( $images as $image ): ?>
                                <div class="gal_thumb">
                                <a href="https://wordpress.stackexchange.com/questions/129212/<?php echo $image["sizes']['large']; ?>" rel="prettyPhoto"><img src="https://wordpress.stackexchange.com/questions/129212/<?php echo $image["sizes']['thumbnail']; ?>" alt="https://wordpress.stackexchange.com/questions/129212/<?php echo $image["title']; ?>"/></a>                                    </div>
                            <?php endforeach; ?>
                    <?php
                    ?>
                <?php endif; ?>