formatting galleries better