rewrite slider code. needs testing.
Merge remote-tracking branch 'github/master' into github