Sync state to #/slide/N or #/slide/N/M. Reads on mount, listens to hashchange.
#/slide/N
#/slide/N/M
hashchange