sorted hiding <div> when needed