implement images in posts using gallery shortcode
move mappings outside of loop