fixed the dynamic loading of next/prev chunks, still having issues with scaling loadImages(...) ...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>