Hi @harryadf
I can see that you are using this line of code to get the gallery field values:
<?php $images = get_field('gallery');
Please remember that when you are loading a value from within a repeater field or flexible content field, you are loading a SUB field value, so please change your code to this:
<?php $images = get_sub_field('gallery');
Thanks
E