modified location of slider error detection