Proper gallery metabox for WordPress