Further corrections for gallery modal