Update gallery code to WP 3.8