fix show gallery