performance improvment

Added a function to hide all slides and then show only current, next and prev. It prevents browser crash on iOS when there many slides and the slides are "heavy" (images, filters, styles, etc.). Should help with Issue #269.