Added slider and open function