bug fix with bounces image gallery