changes directories for thumbnail