Change pop slider example format
Move validation to regular function