New responsive layer slider on pure javascript