Fixed scrollBy() receiving undefined values

Caused images not to expand if the top of the div isn't visible