The problem that you have is caused by JqueryUI that put position:absolute; when you apply a bounce. This is resolvable by putting your img or the element that will get the bounce inside a div with position:relative; and the right height