fix media galleries ordering