How to disable pagination on a gallery template?

you could probably use something like :

<?php echo do_shortcode('[nggallery id=2 0-1000]'); ?>

which would show them all… you could replace the second number (in this case 1000) with a variable that would fetch a number of pictures in a gallery..