gallery design fix