SlideBox changes size on back button after search input

Hi, I have a home view with a slidebox working it has the attributes on height=auto and width=“100%”. When I go to my view with a search and inputs, after i put some inputs in and press the search button(at the moment not with a search function) my homepage Slidebox changes size and goes bigger.

Any ideas, does it matter what the slidebox image sizes are?

I am confused?

Any help would be great.