I’ve solved this by adding new gallery shortcode from here:
https://gist.github.com/lekkerduidelijk/5720496
and then change ‘post_mime_type’=>images to
‘post_mime_type’=>array(‘application/doc’,’images’)
you can add any media type that fits your needs in there.