Fix slider bug and make loading faster