changed width handling, fixed animation config