Independent short- and long-term dependencies in perception