adding slider to search and initialOF functions