fix thumbnail navigation.