copy gallery_shortcode helper in application_helper.rb file